<?php /* Smarty version Smarty-3.1.8, created on 2019-07-16 20:15:34
         compiled from "/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/user/index.html" */ ?>
<?php /*%%SmartyHeaderCode:8292420135d2dbfe69592f0-39004393%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a6a53136e2cb1512f1d6e59600d9375c3599a0fd' => 
    array (
      0 => '/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/user/index.html',
      1 => 1450315320,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8292420135d2dbfe69592f0-39004393',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'data' => 0,
    'v' => 0,
    'url' => 0,
    'fpage' => 0,
    'args' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5d2dbfe6a53229_17439785',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5d2dbfe6a53229_17439785')) {function content_5d2dbfe6a53229_17439785($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/Users/aron/GitRepos/PHPBroShop/broshop/brophp/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m"><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="m" value="user" />
				用户名：<input type="text" name="name" value="<?php echo $_GET['name'];?>
" class="inputtext inputtext_150" />
				联系电话：<input type="text" name="phone" value="<?php echo $_GET['phone'];?>
" class="inputtext inputtext_150" />
				常用邮箱：<input type="text" name="email" value="<?php echo $_GET['email'];?>
" class="inputtext inputtext_150" />
				<select name="orderby" class="inputselect">
					<option value="" <?php if ($_GET['orderby']==''){?> selected <?php }?> href="">默认排序</option>
					<option value="ltime" <?php if ($_GET['orderby']=='ltime'){?> selected <?php }?>  href="&orderby=ltime" >最近登录</option>
				</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="10"><input type="checkbox" name="checkall" onclick="bro_checkall(this, 'id')" /></td>
		<td class="bgtt" width="50">ID号</td>
		<td class="bgtt">用户名</td>
		<td class="bgtt" width="120">联系电话</td>
		<td class="bgtt" width="180">常用邮箱</td>
		<td class="bgtt" width="80">注册日期</td>
		<td class="bgtt" width="120">上次登录</td>
		<td class="bgtt" width="88">操作</td>
	</tr>
	
	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	<tr>
		<td><input type="checkbox" name="id[]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"></td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['phone'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['email'];?>
</td>
		<td><span><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['atime'],'%Y-%m-%d');?>
</span></td>
		<td><span><?php echo bro_dayago($_smarty_tpl->tpl_vars['v']->value['ltime']);?>
</span></td>
		<td>
			<a href="admin.php?m=user&a=mod&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_edit mar3">修改</a>
			<a href="admin.php?m=user&a=del&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_del" onclick="return confirm('确定要删除会员<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
吗？')">删除</a>
		</td>
	</tr>
	<?php } ?>
	<tr>
		<td class="bgtt"><input type="checkbox" name="checkall" onclick="bro_checkall(this, 'id')" /></td>
		<td class="bgtt aleft" colspan="7">
			<span class="fl"><button href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=del" onclick="return bro_cfall(this, 'id', 'form', '批量删除')">批量删除</button></span>
			<?php echo $_smarty_tpl->tpl_vars['fpage']->value;?>

		</td>
	</tr>
	</table>
	</form>
</div>
<script type="text/javascript"> 
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php?<?php echo $_smarty_tpl->tpl_vars['args']->value;?>
' + $(this).find("option:selected").attr("href");
	})
})
</script>


<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php }} ?>